/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#ifndef __OBJECT_WINDOW_H__
#define __OBJECT_WINDOW_H__

#include <QtGui/QWidget>
#include <QtGui/QToolBar>
#include <QtGui/QTreeWidget>

namespace PQBuilder
{
	class ObjectCreateTree : 
		public QTreeWidget
	{
	
	public:
		ObjectCreateTree(QWidget *parent = 0);
		void init();
		virtual ~ObjectCreateTree() {};
	protected:
		void mousePressEvent(QMouseEvent *evt);
		void mouseMoveEvent(QMouseEvent *evt);
	private:
		QPoint _dragStartPosition;

		//Lights
		QTreeWidgetItem* _pointLightItem;
		QTreeWidgetItem* _directLightItem;
		QTreeWidgetItem* _spotLightItem;

		QTreeWidgetItem* _rigidBodyItem;
		QTreeWidgetItem* _planeColliderItem;
		QTreeWidgetItem* _boxColliderItem;
		QTreeWidgetItem* _sphereColliderItem;
	};
	
	class ObjectWindow : 
		public QWidget
	{
	public:
		explicit ObjectWindow(QWidget *parent = 0);
		virtual ~ObjectWindow();
	private:
		ObjectCreateTree *_treeWidget;
	};
}

#endif
